#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	char str[100];
	gets(str);
	int j = 0;
	for (int i = 0;i < strlen(str);i++)
	{
		if (str[i] >= '0' && str[i] <= '9')
			str[j++] = str[i];
	}